package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class RongYiHuiUtil {

    public static String getLoanAmount(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la001.getValue())){
            return "3~5万";
        }else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la002.getValue())){
            return "3~5万";
        }else if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.LoanAmount.la003.getValue())){
            return "5~10万";
        }
        return "3~5万";
    }

    public static String getJd(String baitiao) {
        if (StrUtil.equals(baitiao, BaseTypeInfoEnum.Baitiao.bt002.getValue())){
            return "5000及以下";
        }else if (StrUtil.equals(baitiao, BaseTypeInfoEnum.Baitiao.bt003.getValue())){
            return "5000以上";
        }else if (StrUtil.equals(baitiao, BaseTypeInfoEnum.Baitiao.bt004.getValue())){
            return "5000以上";
        }
        return "无京东白条";
    }

    public static String getHuabei(String huabei) {
        if (StrUtil.equals(huabei, BaseTypeInfoEnum.Huabei.hb002.getValue())){
            return "5000及以下";
        }else if (StrUtil.equals(huabei, BaseTypeInfoEnum.Huabei.hb003.getValue())){
            return "5000以上";
        }else if (StrUtil.equals(huabei, BaseTypeInfoEnum.Huabei.hb004.getValue())){
            return "5000以上";
        }
        return "无花呗";
    }

    public static String getXueli(String xeuli) {
        if (StrUtil.equals(xeuli, BaseTypeInfoEnum.XueLi.xl005.getValue())){
            return "本科及以上";
        }else if (StrUtil.equals(xeuli, BaseTypeInfoEnum.XueLi.xl004.getValue())){
            return "本科及以上";
        }else if (StrUtil.equals(xeuli, BaseTypeInfoEnum.XueLi.xl003.getValue())){
            return "专科";
        }
        return "专科以下";
    }


    public static String getGjj(String gjj) {
        if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj001.getValue())){
            return "无本地公积金";
        }
        return "连续6个月及以上";
    }

    public static String getSheBao(String socialInsurance) {
        if (StrUtil.equals(socialInsurance, BaseTypeInfoEnum.Shebao.sb001.getValue())){
            return "无本地社保";
        }
        return "连续6个月及以上";
    }

    public static String getYuqi(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.Yuqi.yq002.getValue())){
            return "1年内逾期少于3次";
        }
        return "信用良好，无逾期";
    }

    public static String getInsurance(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.Baoxian.bx001.getValue())){
            return "无保单";
        }
        return "6个月以上";
    }



    public static String getZhima(String ZhimaScore) {
        if (StrUtil.equals(ZhimaScore, BaseTypeInfoEnum.Zhima.zm005.getValue())){
            return "700以上";
        }else if (StrUtil.equals(ZhimaScore, BaseTypeInfoEnum.Zhima.zm004.getValue())){
            return "650-700";
        }else if (StrUtil.equals(ZhimaScore, BaseTypeInfoEnum.Zhima.zm003.getValue())){
            return "600-650";
        }
        return "600以下";
    }

    public static String getHouse(String loanAmount) {
        if (StrUtil.equals(loanAmount, BaseTypeInfoEnum.House.hu001.getValue())){
            return "无房产";
        }
        return "有房，接受抵押";
    }

    public static String getCar(String car) {
        if (StrUtil.equals(car, BaseTypeInfoEnum.Car.car001.getValue())){
            return "无车产";
        }
        return "有车，可接受抵押";
    }

}
